home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-03-16 | 1.2 KB | 39 lines | [TEXT/GEOL] |
- Item 5544772 12-March-90 21:09PST
-
- From: D0416 Futuresoft System Design,PRT
-
- To: MADA2 MacApp Dev Assoc, Curtis Faith,IVC
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: RE-Scrollers and Framing
-
- Curtis,
-
- Thanks for your link about scrollers and framing. I ran into the same problems
- and put finding the solution on the back burner. (That back burner is getting a
- little crowded) Now with your link I can get rid of that one. Thanks again.
-
- Do you see a problem in replacing your lines at the beginning of
- TMyScroller.DrawContents:
-
- location := fLocation;
- qdLocation := ViewToQDPt(location);
- itsExtent.topLeft := gZeroVPt;
- itsExtent.botRight := fSize;
- VRectToRect(itsExtent, qdRect);
- PenNormal;
- OffsetRect(qdRect, qdLocation.h, qdLocation.v);
-
- with:
-
- GetFrame(itsExtent); {a TView method}
- VRectToRect(itsExtent, qdRect);
- PenNormal;
-
- It looks like it would work, even in a TScroller class. Of course I would
- rename the variable itsExtent to itsFrame for readability.
-
- -Ken (stoking the back burner) Addison
-
-